<template>
    <div>
    <ChartPanelModal @register="registerChartPanelModal"
    @success='handleChartPanelSuccess'
    ></ChartPanelModal>
    </div>
</template>

<script lang='ts' setup>
import ChartPanelModal from './ChartPanelModal.vue';

  const [registerChartPanelModal, { openModal:openChartPanelModal, closeModal:closeChartPanelModal }] = useModal();
  function handleOpenChartPanelModal(){
    openChartPanelModal(true, {
      formStatus: 'add',
      record: {},
    })

    function handleChartPanelSuccess(){
      
    }
  }
</script>

<style scoped>

</style>
